package com.keepmoving.service;

import com.keepmoving.po.Coach;

import java.util.List;

/**
 * @author xf
 * 教练业务逻辑层
 */
public interface CoachService {

    /**
     * 展示所有教练
     */
    public List<Coach> showAll();

    /**
     * 通过教练coid展示教练
     *
     * @param coId
     * @return
     */
    public Coach showByCoId(int coId);

    /**
     * 添加教练
     *
     * @param coach
     * @return
     */
    public boolean addCoach(Coach coach);

    /**
     * 根据coId删除教练
     *
     * @param coId
     * @return
     */
    public boolean deleteCoach(int coId);

    /**
     * 更新教练信息
     *
     * @param coach
     * @return
     */
    public boolean update(Coach coach);

}
